package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbOrderstatus;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbOrderstatus is a Querydsl query type for ETbOrderstatus
 */
@Label("TbOrderstatus查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbOrderstatus extends RelationalPathBase<ETbOrderstatus> {

    private static final long serialVersionUID = -785532055;

    public static final QTbOrderstatus tbOrderstatus = new QTbOrderstatus("tb_orderstatus");

    public class PrimaryKeys {

        public final PrimaryKey<ETbOrderstatus> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ETbFleetOrder> orderStatusFleetOrderId = createForeignKey(fleetOrderID, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbCustomerOrder> orderStatusCustomerId = createForeignKey(customerOrderID, "id");

    }

    public final StringPath content = createString("content");

    public final StringPath customerOrderID = createString("customerOrderID");

    public final StringPath fleetOrderID = createString("fleetOrderID");

    public final StringPath id = createString("id");

    public final StringPath operator = createString("operator");

    public final DateTimePath<org.joda.time.DateTime> time = createDateTime("time", org.joda.time.DateTime.class);

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbOrderstatus(String variable) {
        super(ETbOrderstatus.class, forVariable(variable), "null", "tb_orderstatus");
        addMetadata();
    }

    public QTbOrderstatus(String variable, String schema, String table) {
        super(ETbOrderstatus.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbOrderstatus(Path<? extends ETbOrderstatus> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_orderstatus");
        addMetadata();
    }

    public QTbOrderstatus(PathMetadata<?> metadata) {
        super(ETbOrderstatus.class, metadata, "null", "tb_orderstatus");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(content, ColumnMetadata.named("content").withIndex(4).ofType(Types.VARCHAR).withSize(500));
        addMetadata(customerOrderID, ColumnMetadata.named("customerOrderID").withIndex(5).ofType(Types.CHAR).withSize(24));
        addMetadata(fleetOrderID, ColumnMetadata.named("fleetOrderID").withIndex(6).ofType(Types.CHAR).withSize(24));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(operator, ColumnMetadata.named("operator").withIndex(2).ofType(Types.VARCHAR).withSize(100));
        addMetadata(time, ColumnMetadata.named("time").withIndex(3).ofType(Types.TIMESTAMP).withSize(19));
    }

}

